import ReactDOM from 'react-dom/client';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import Vote from './view/Vote';
//redux
import store from './store';
import ThemeContext from './ThemeContext';
const root = ReactDOM.createRoot(document.querySelector('#root'));
root.render(
  <ConfigProvider locale={zhCN}>
    <ThemeContext.Provider value={{
      store
    }}>
      <Vote />
    </ThemeContext.Provider>
  </ConfigProvider>
);
